<template>
    <!-- #ifdef H5 -->
    <el-rate v-model="bindValue" v-bind="$attrs"></el-rate>
    <!-- #endif -->
  </template>
  <script>
  export default {
    inheritAttrs: false,
  };
  </script>
  <script setup>
  // #ifdef H5
  import { ElRate } from "element-plus";
  import "element-plus/theme-chalk/el-rate.css";
  // #endif
  import { computed, watch, ref } from "vue";
  const props = defineProps({
    modelValue: {
      type: Boolean,
    },
  });
  const emits = defineEmits(["update:modelValue"]);
  const bindValue = computed({
    get() {
      return props.modelValue;
    },
    set(value) {
      emits("update:modelValue", value);
    },
  });
  </script>
  <style lang="scss" scoped></style>
  